package com.birdcage.goldminer.gameobjects;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureWrap;
import com.badlogic.gdx.math.Vector2;
import com.birdcage.gamemanagers.ResourceManager;

public class Stone extends GoldMinerObject {
    
	public Stone() {
		super(50, 50);
		
		InitTexture();
	}
	
    public Stone(int x, int y) {
        super(50, 50);
        SetWorldPos(x, y);
        
        InitTexture();
    }
    
    public Stone(int x, int y, int score, int weight) {
        super(score, weight);
        SetWorldPos(x, y);
        
        InitTexture();
    }
    
    public Stone(Vector2 pos, int score, int weight) {
        super(score, weight);
        SetWorldPos(pos);
        
        InitTexture();
    }
    
    private void InitTexture() {
        //add Texture
    	Texture stone = new Texture(ResourceManager.GetInstance().LoadResource("stone.png", false));
    	stone.setWrap(TextureWrap.ClampToEdge, TextureWrap.ClampToEdge);
    	AddRenderUnit(stone);
    }
}
